package com.briup.impl.main;

import com.briup.entity.Environment;
import com.briup.impl.ConfigurationImpl;
import com.briup.inter.client.Client;
import com.briup.inter.client.Gather;

import java.util.Collection;


public class ClientMain {
    public static void main(String[] args) throws Exception {
        ConfigurationImpl configuration = ConfigurationImpl.getInstance();
        Gather gather = configuration.getGather();
        Collection<Environment> list = gather.gather();
        Client client = configuration.getClient();
        if(list != null && list.size() > 0){
            client.send(list);
        }
    }
}
